/*
 * @Author: 尔尔
 * @Date: 2023-12-30 13:45:43
 * @LastEditors: 尔尔
 * @LastEditTime: 2024-03-12 08:59:16
 * @FilePath: \ERP\src\api\taskFilling\propertyRegistrationOuter.js
 * @filePurpose:
 */
import request from "@/utils/request"

// 查询顾客财产登记(外委)设备列表
export function listPropertyRegistrationOuter(query) {
	return request({
		url: "/erp/propertyRegistrationOuter/list",
		method: "get",
		params: query
	})
}

// 查询顾客财产登记(外委)设备详细
export function getPropertyRegistrationOuter(id) {
	return request({
		url: "/erp/propertyRegistrationOuter/" + id,
		method: "get"
	})
}

// 新增顾客财产登记(外委)设备
export function addPropertyRegistrationOuter(data) {
	return request({
		url: "/erp/propertyRegistrationOuter",
		method: "post",
		data: data
	})
}

// 修改顾客财产登记(外委)设备
export function updatePropertyRegistrationOuter(data) {
	return request({
		url: "/erp/propertyRegistrationOuter",
		method: "put",
		data: data
	})
}

// 删除顾客财产登记(外委)设备
export function delPropertyRegistrationOuter(id) {
	return request({
		url: "/erp/propertyRegistrationOuter/" + id,
		method: "delete"
	})
}

// 查询外委顾客财产列表
export function outerList(params) {
	return request({
		url: "/erp/propertyRegistrationOuter/outerList",
		method: "get",
		params
	})
}
//设置wa外委

export function outsource(data) {
	return request({
		url: "/erp/propertyRegistrationOuter/outsource1",
		method: "post",
		data
	})
}

// 查询编号
export function getNumber() {
	return request({
		url: "/erp/propertyRegistrationOuter/getNumber",
		method: "post"
	})
}
